// 防止扩展
// 使现有的属性不可写入和不可配置
const _objectFreeze = (object) => {
  Object.preventExtensions(object);
  for (const key of Object.keys(object)) {
    Object.defineProperty(object, key, {
      configurable: false,
      writable: false,
    });
  }
  return object;
};
